<?php
/**
 * スマーティ時刻センタくメニューコンポーネント
 */
require_once dirname(__FILE__) . '/Components.php';

class Smarty_Components_SelectTime extends Smarty_Components
{
	const TEMPLATE_NAME = 'selecttime.tpl';

	protected $_iMinuteInterval;

	public function __construct($sCompileDir, $sCompileId, $sName, $iMinuteInterval=10)
	{
		parent::__construct(dirname(__FILE__), $sCompileDir, $sCompileId);
		$this->_iMinuteInterval = $iMinuteInterval;
		$this->view->name = $sName;
	}

	public function fetch()
	{
		$this->view->MinuteInterval = $this->_iMinuteInterval;
		$sHtml = parent::fetch(self::TEMPLATE_NAME);
		return $sHtml;
	}
}